package com.woniuxy.utils;

/**
 * @Author: 马宇航
 * @Todo: JSON转java类型
 * @DateTime: 25/09/08/星期一 17:41
 * @Component: 成都蜗牛学苑
 **/
public class JsonType2JavaType {
    public static String convert(String jsonType) {
        switch (jsonType) {
            case "integer":
            case "number":
                return "int";
            case "boolean":
                return "boolean";
            case "string":
                return "String";
            default:
                return "Object";
        }
    }
}
